<!-- HEADER -->
<div id="header">

<div id="formPan">
<h2><img height="30" width="20" align="absmiddle" src="<?php echo WEB_PATH;?>images/search_icon.gif"/><span style="font:12px tahoma,Arial,Helvetica,sans-serif; "><b>Search Properties</b></span>
<span style="font:11px tahoma,Arial,Helvetica,sans-serif; ">(New / Resale)</span>
</h2>

<form method="post" action="<?php echo WEB_URL; ?>property/propertysearch" name="search" class="search" >

<?php  if(strlen($this->session->userdata('errmsg')) >0){
				echo "<p class='errmsg'>". $this->session->userdata('errmsg') ."</p>";
				$this->session->set_userdata('errmsg','');
			}
			
			?>
			
			<label>City<font color="#ff0000">*</font></label><br />
            <select name="location" id="location" class="location" style="width: 100px;"><option selected="selected" value="0">Select</option>
			<?php
			
				foreach($citylist as $val)
				{
				print "<option class='cityhighlight' value='".$val['cityname']."'>".$val['cityname']."</option>";
				
					foreach($val['localityarray'] as $value)
					{
						print "<option value='".$value['locality']."'>".$value['locality']."</option>";
					}
				
				}
								
			?>
			
			
			</select>
            <br />
			<br class="spacer"/><br class="spacer"/>
			
			<label>Budget<font color="#ff0000">*</font></label><br />
			<select name="minprice" id="minprice" class="minprice" style="width: 70px;" onchange="dochange('maxprice',this.value);"><option selected="selected" value="0">Min</option>
			<?php
				foreach($minbudget as $val)
				{
				print "<option value='".$val['budget']."'>".$val['budgetname']."</option>";
				}
								
			?>
			</select>
			<label>To</label> 
			
			<select name="maxprice" id="maxprice" class="maxprice" style="width: 70px;"><option selected="selected" value="0">Max</option>
			<?php
				foreach($maxbudget as $val)
				{
				print "<option value='".$val['budget']."'>".$val['budgetname']."</option>";
				}
								
			?>
			</select>
			
			<br />
			<br class="spacer"/><br class="spacer"/>
            
            
            
            <label>Bedrooms</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label>Property type<font color="#ff0000">*</font></label><br />
            <select name="bedrooms" id="bedrooms">
              <option selected="selected" value="0">Select</option>
			  <option value="1">1</option>
			  <option value="1">2</option>
			  <option value="1">3</option>
			  <option value="1">4</option>
			  <option value="1">5</option>
			  <option value="1">6</option>
			  <option value="1">7</option>
			  <option value="1">8</option>
			  </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select name="propertytype" id="propertytype"><option selected="selected" value="0">Select</option>
			  <?php
				foreach($propertytype as $val)
				{
				print "<option value='".$val['propertytype']."'>".$val['propertytype']."</option>";
				}
								
			?>					
						</select>
			 
            <br />
			<br class="spacer"/><br class="spacer"/>
            
            
            <input type="submit" name="submit" value="Search"/>
</form>
</div>

<div id="mainimgPan">

<ul>
<li class="btn1"><a href="#">text</a></li>
<li class="line"><img src="images/line2.jpg" alt="" width="2" height="18" /></li>
<li class="btn2"><a href="#">text</a></li>
</ul>

<div id="mainimg">
<!--<a href="#"><img src="images/btn_clickhere.jpg" alt="click here" width="66" height="17" border="0" /></a>-->
<label style="display:block; padding-top:9px; font:13px tahoma,Arial,Helvetica,sans-serif;"><strong>Residential</strong></label>
<br />
<img height="28px" width="28px" align="absmiddle" src="<?php echo WEB_PATH;?>images/browse-icon.jpg"/> <label style="font:bold 14px tahoma,Arial,Helvetica,sans-serif; color:#cc0000;">Browse New Projects</label>
<br />

</div>
</div>
</div>


 